<%--
  Created by IntelliJ IDEA.
  Author: WaveHi
  Contact: HJBWaveHi@163.com
  Date: 14/9/2021
  Time: 上午 10:02
  Description: 
  Version: 1.0
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Login</title>
</head>
<body>
    <%-- 声明脚本 --%>
    <%!
        private String name;//姓名
        private String age;//年龄

        static {
            System.out.println("I am the static code of jspServlet!");
        }
        private Integer add(Integer num1, Integer num2) {
            return num1 + num2;
        }
        private class MyInnerClass {

        }
    %>
    <%-- 表达式脚本 --%>
    <%=request.getCharacterEncoding()%>
    <%-- 代码脚本 --%>
    <%
        for(int i = 0; i < 10; i++) {
            %>
    <%="Wow!"%>
    <%
        }
    %>
</body>
</html>
